package com.itheima.homework.work1;
//洗衣机
public class Washing extends Electric{
    private String type;//电机类型
    private String capacity;//洗涤容量

    public Washing() {
    }

    public Washing(String bread, String model, String color, int price, String type, String capacity) {
        super(bread, model, color, price);
        this.type = type;
        this.capacity = capacity;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCapacity() {
        return capacity;
    }

    public void setCapacity(String capacity) {
        this.capacity = capacity;
    }

    @Override
    public String toString() {
        return super.toString()+
                "type='" + type + '\'' +
                ", capacity='" + capacity + '\'' +
                '}';
    }
}
